IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > SerializationFns Class > Save Method : Save(Object,String,IEnumerable<Type>,Boolean) Method |
'Declaration
Public Overloads Shared Sub Save( _ ByVal instance As Object, _ ByVal fileName As String, _ Optional ByVal knownTypes As IEnumerable(Of Type), _ Optional ByVal useBinary As Boolean _ )
'Usage
Dim instance As Object Dim fileName As String Dim knownTypes As IEnumerable(Of Type) Dim useBinary As Boolean SerializationFns.Save(instance, fileName, knownTypes, useBinary)
public static void Save( object instance, string fileName, IEnumerable<Type> knownTypes, bool useBinary )
Exception | Description |
---|---|
System.UnauthorizedAccessException | The exception that is thrown when the operating system denies access because of an I/O error or a specific type of security error. |
System.Security.SecurityException | The exception that is thrown when a security error is detected. |
System.IO.IOException | The exception that is thrown when an I/O error occurs. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2